using System;
using System.Globalization;
using System.Windows.Data;
using Core.Domain.Entities;

namespace TallyJ.EntityWrappers
{
  ///<summary>Show the Name</summary>
  public class DisplayNameConverter : IValueConverter
  {

    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
      var person = value as Person;
      return person.DisplayName(true);
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
      throw new NotImplementedException();
    }
  }
}